import App from './App'
// 导入uview
import uView from "uview-ui";
import myFunction from '@/common/myFunction.js'
// #ifdef H5
import wechat from "@/common/wechat_info.js"
// #endif
// 导入store.js
import store from '@/store';
// #ifndef VUE3
import Vue from 'vue'

// #ifdef H5
// console.log(process.env.APP_CONFIG[process.env.RUN_DEV],process.env.RUN_DEV);

// #ifdef DEV-H5
import VConsole from 'vconsole';
new VConsole();
// #endif

// 是否挂载微信方法
if (wechat.isWechat()) {
  Vue.prototype.$wechat = wechat;
}
// #endif

Vue.use(uView);
Vue.use(myFunction);
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
require('./utils/request.js')(app)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
